package leetcode_2501_2600;

public class LeeCode_2535 {
    public static void main(String[] args) {

    }
    private static int differenceOfSum(int[] nums) {
        int s1 = 0, s2 = 0;
        for (int num : nums) {
            s1 += num;
            while (num != 0){
                s2 += num % 10;
                num /= 10;
            }
        }
        return Math.abs(s1 - s2);
    }
}
